package com.ysstech.common.realm;

import org.apache.shiro.spring.aop.SpringAnnotationResolver;
import org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor;
//自定义AOP拦截，继承 AopAllianceAnnotationsAuthorizingMethodInterceptor
public class YssAopAllianceAnnotationsAuthorizingMethodInterceptor extends AopAllianceAnnotationsAuthorizingMethodInterceptor {
    public YssAopAllianceAnnotationsAuthorizingMethodInterceptor() {
        super();
        this.methodInterceptors.add(
                new YssAuthorizingAnnotationMethodInterceptor(new SpringAnnotationResolver()));
    }
}
